package com.tedu.parkinglot.operation.service.impl;

import com.tedu.parkinglot.operation.mapper.OperationMapper;
import com.tedu.parkinglot.operation.pojo.dto.OperationQuery;
import com.tedu.parkinglot.operation.pojo.vo.OperationVO;
import com.tedu.parkinglot.operation.service.OperationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class OperationServiceImpl implements OperationService {
    @Autowired
    OperationMapper operationMapper;
    @Override
    public List<OperationVO> selectOperation(OperationQuery operationQuery) {
        log.debug("查询操作日志参数:OperationQuery{}",operationQuery);
        List<OperationVO> list = operationMapper.selectOperation(operationQuery);
        return list;
    }

    @Override
    public void deleteOperation(Long id) {
        log.debug("删除操作日志业务:id{}",id);
        operationMapper.deleteOperation(id);
    }
}
